//
//  TestInterpreter.m
//  LearnObjectiveC
//
//  Created by client on 2017/9/8.
//  Copyright © 2017年 吴可高. All rights reserved.
//

#import "TestInterpreter.h"
#import "Minus.h"
#import "Plus.h"
#import "Context.h"

@implementation TestInterpreter
-(int)startCalcuate
{
    Plus * plus = [Plus new];
    Context * plusContext = [Context contextSetNum1:9 num2:2];
    [plus interpreter:plusContext];
    Minus * minus = [Minus new];
    Context * minusContext = [Context contextSetNum1:[plus interpreter:plusContext] num2:8];
    return [minus interpreter:minusContext];
}

@end
